<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
  <style>
    ul {
      list-style: none;
      float: left;
    }

    ul li {
      font-size: 20px;
      width: 150px;
      line-height: 40px;
      margin-top: 10px;
      text-align: center;
    }

    .poem {
      background-color: aqua;
    }

    .poetry {
      background-color: burlywood;
    }

    .show {
      float: left;
      text-align: center;
      margin-left: 50px;
    }
  </style>
</head>

<body>
  <ul>
    {% for item in result %}
    <li id="{{item.id }}" class="{{item.kind }}">
      {{item.title}}
    </li>
    {% endfor %}
  </ul>
  <div class="show">

  </div>
  <script>
    $('li').click(function () {
      window.location.href = '/blog/' + $(this).attr('id')
      // $.get('/blog/' + $(this).attr('id'), function (result) {
      //   $('.show').html(result.content)
      // })
    })
  </script>
</body>

</html>